package cn.dkk.behavior_design.responsibility;

/**
 * @author dkk
 * @date 2022/7/25
 * @desc
 */
public class Test {
    public static void main(String[] args) {
        LeaveRequest leaveRequest = new LeaveRequest("头晕", 1, "杜二狗");
        GroupLeader groupLeader = new GroupLeader();
        Manger manger = new Manger();
        GeneralManger generalManger = new GeneralManger();
        groupLeader.setNextHandler(manger);
        manger.setNextHandler(generalManger);
        groupLeader.submit(leaveRequest);
    }
}
